package com.gxh.text.service.impl;

import com.gxh.text.entity.TokenTable;
import com.gxh.text.entity.Users;
import com.gxh.text.mapper.UsersMapper;
import com.gxh.text.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper um;

    @Override
    public Users Login(String name, String password) {


        return  um.login(name,password);
    }

    @Override
    public Integer AddTokenTable(String token, Integer id, Date times) {

        Integer t = um.addTable(token,id,times);

        return t;
    }
}
